<?xml version="1.0" encoding="utf-8"?>
<Application xmlns='http://schemas.microsoft.com/windows/2009/Ribbon'>
  <Application.Commands>

    <Command Name='cmdExit' LabelTitle='Exit'>
      <Command.LargeImages>
        <Image Source='res/ExitHH.bmp'/>
      </Command.LargeImages>
    </Command>
    <Command Name='cmdHome' LabelTitle='Home' Keytip='H'/>
    <Command Name='cmdRibbonGroup' LabelTitle='Ribbon'/>
    <Command Name='cmdSettingsGroup' LabelTitle='Settings'/>
    <Command Name='cmdInvalidateControlGroup' LabelTitle='Invalidate Control'/>
    <Command Name='cmdClipboard' LabelTitle='ClipBoard'/>
    <Command Name='cmdAbout' TooltipTitle='About' Keytip='?'/>
    <Command Name='cmdAppMenu' />
    <Command Name='cmdPaste' LabelTitle='Paste' TooltipTitle='Paste' Keytip='V'>
      <Command.LargeImages>
        <Image Source='res/PasteHH.bmp'/>
      </Command.LargeImages>
      <Command.SmallImages>
        <Image Source='res/PasteHS.bmp'/>
      </Command.SmallImages>
    </Command>
    <Command Name='cmdCut' LabelTitle='Cut' TooltipTitle='Cut' Keytip='X'>
      <Command.SmallImages>
        <Image Source='res/CutHS.bmp'/>
      </Command.SmallImages>
    </Command>
    <Command Name='cmdCopy' LabelTitle='Copy' TooltipTitle='Copy' Keytip='C'>
      <Command.SmallImages>
        <Image Source='res/CopyHS.bmp'/>
      </Command.SmallImages>
    </Command>
    <Command Name='cmdDelete' LabelTitle='Delete' TooltipTitle='Delete' Keytip='D'>
      <Command.SmallImages>
        <Image Source='res/DeleteHS.bmp'/>
      </Command.SmallImages>
    </Command>
    <Command Name='cmdShowRibbon' LabelTitle='Show Ribbon' TooltipTitle='Show the Ribbon' Keytip='R'>
      <Command.LargeImages>
        <Image Source='res/ShowRibbon.bmp'/>
      </Command.LargeImages>
    </Command>
    <Command Name='cmdToolPaths' LabelTitle='Tool Paths' TooltipTitle='Set the tool paths' Keytip='T'>
      <Command.LargeImages>
        <Image Source='res/Toolpath.bmp'/>
      </Command.LargeImages>
    </Command>
    <Command Name='cmdLoad' LabelTitle='Load' TooltipTitle='Load' Keytip='L'>
      <Command.LargeImages>
        <Image Source='res/OpenFileL.bmp'/>
      </Command.LargeImages>
    </Command>
    <Command Name='cmdSave' LabelTitle='Save' TooltipTitle='Save' Keytip='S'>
      <Command.LargeImages>
        <Image Source='res/SaveHH.bmp'/>
      </Command.LargeImages>
    </Command>
    <Command Name='cmdSaveAs' LabelTitle='Save As' TooltipTitle='Save with new file name' Keytip='A'>
      <Command.LargeImages>
        <Image Source='res/SaveAsHH.bmp'/>
      </Command.LargeImages>
    </Command>
    <Command Name='cmdInvalidate' LabelTitle='Invalidate' TooltipTitle='Invalidate the chosen command' Keytip='I'/>
  </Application.Commands>
  <Application.Views>
    <Ribbon>
      <Ribbon.QuickAccessToolbar>
        <QuickAccessToolbar>
          <QuickAccessToolbar.ApplicationDefaults>
            <Button CommandName='cmdShowRibbon' ApplicationDefaults.IsChecked='true'/>
            <Button CommandName='cmdToolPaths' ApplicationDefaults.IsChecked='true'/>
            <Button CommandName='cmdLoad' ApplicationDefaults.IsChecked='true'/>
            <Button CommandName='cmdSave' ApplicationDefaults.IsChecked='false'/>
            <Button CommandName='cmdSaveAs' ApplicationDefaults.IsChecked='false'/>
          </QuickAccessToolbar.ApplicationDefaults>
        </QuickAccessToolbar>
      </Ribbon.QuickAccessToolbar>
      <Ribbon.HelpButton>
        <HelpButton CommandName='cmdAbout'/>
      </Ribbon.HelpButton>
      <Ribbon.ApplicationMenu>
        <ApplicationMenu CommandName='cmdAppMenu'>
          <MenuGroup>
            <Button CommandName='cmdLoad'/>
            <Button CommandName='cmdSave'/>
            <Button CommandName='cmdSaveAs'/>
          </MenuGroup>
          <MenuGroup>
            <Button CommandName='cmdExit'/>
          </MenuGroup>
        </ApplicationMenu>
      </Ribbon.ApplicationMenu>
      <Ribbon.Tabs>
        <Tab CommandName='cmdHome'>
          <Tab.ScalingPolicy>
            <ScalingPolicy>
              <ScalingPolicy.IdealSizes>
                <Scale Group='cmdClipboard' Size='Medium'/>
                <Scale Group='cmdRibbonGroup' Size='Large'/>
                <Scale Group='cmdSettingsGroup' Size='Large'/>
              </ScalingPolicy.IdealSizes>
              <Scale Group='cmdClipboard' Size='Small'/>
              <Scale Group='cmdClipboard' Size='Popup'/>
            </ScalingPolicy>
          </Tab.ScalingPolicy>
          <Group CommandName='cmdClipboard' SizeDefinition='FourButtons'>
            <Button CommandName='cmdPaste'/>
            <Button CommandName='cmdCut'/>
            <Button CommandName='cmdCopy'/>
            <Button CommandName='cmdDelete'/>
          </Group>
          <Group CommandName='cmdRibbonGroup' SizeDefinition='OneButton'>
            <Button CommandName='cmdShowRibbon'/>
          </Group>
          <Group CommandName='cmdSettingsGroup' SizeDefinition='OneButton'>
            <Button CommandName='cmdToolPaths'/>
          </Group>
          <!--<Group CommandName='cmdInvalidateControlGroup'>
            <SplitButtonGallery CommandName='cmdInvalidate' Type='Items' TextPosition='Top' HasLargeItems='false'>
              <SplitButtonGallery.MenuLayout>
                <FlowMenuLayout Columns='1' Gripper='Vertical' Rows='20'/>
              </SplitButtonGallery.MenuLayout>
              <SplitButtonGallery.MenuGroups>
                <MenuGroup>
                  
                </MenuGroup>
              </SplitButtonGallery.MenuGroups>
            </SplitButtonGallery>
          </Group>-->
        </Tab>
      </Ribbon.Tabs>
    </Ribbon>
    <ContextPopup>
      <ContextPopup.MiniToolbars>
        <MiniToolbar Name='ClipBoard'>
          <MenuGroup>
            <Button CommandName='cmdPaste'/>
            <Button CommandName='cmdCut'/>
            <Button CommandName='cmdCopy'/>
            <Button CommandName='cmdDelete'/>
          </MenuGroup>
        </MiniToolbar>
      </ContextPopup.MiniToolbars>
    </ContextPopup>
  </Application.Views>
</Application>
